class StatusCode:
    """系统内部的自定义的状态码"""

    Success = 10000

    BadRequest = 40000
    Unauthorized = 40100
    Forbidden = 40300
    NotFound = 40400
    MethodNotAllowed = 40500
    NotAcceptable = 40600
    RequestTimeout = 40800
    LengthRequired = 41100
    EntityTooLarge = 41300
    RequestUriTooLong = 41400
    ValidatorError = 42200
    RequestValidatorError = 42201
    AssertValidatorError = 42202
    Locked = 42300
    HeaderFieldsTooLarge = 43100

    ServerError = 50000
    UnknownError = 50001


class PaginateConst:
    DefaultNum = 1
    DefaultSize = 10

    MinNum = 1
    MaxSize = 40


class EnvConst:
    TEST = 'test'
    PRD = 'prd'
    DEV = 'dev'
    LOCAL = 'local'


class RedisConst:
    """Redis Key 定义"""

    class Base:
        Name = 'Base'
        Expiry = 60




class FileConst:
    """文件系统定义"""

    # class Type:
    #     OwnData = 'ownData'
    #
    #     # 不在知识集
    #     CommonData = 'commonData'
    #     ModelResult = 'modelResult'
    #     Redraw = 'redraw'
    #     Mask = 'mask'
    #
    #     Avatar = 'avatar'
    #     GPTsAvatar = 'gptsAvatar'
    #
    #     ASRVoice = 'asrVoice'
    #     TTSVoice = 'ttsVoice'
    #
    # class UploadType:
    #     File = 'file'
    #     Encode = 'base64'
    #
    # class Category:
    #     Image = ('image/png', 'image/jpeg')
    #
    #     Audio = ('audio/mp3', 'audio/wav')
    #
    #     Video = (
    #         'video/mov', 'video/mpeg', 'video/mp4', 'video/mpg', 'video/avi', 'video/wmv', 'video/mpegps', 'video/flv'
    #     )
